import request from '@/utils/request'

// 查询敏感词列表
export function listSensitive() {
    return request({
        url: '/service-article/sensitive/list',
        method: 'get',
    })
}

// 新增敏感词
export function addSensitive(data) {
    return request({
        url: '/service-article/sensitive/add',
        method: 'post',
        data: data
    })
}

// 修改敏感词
export function updateSensitive(data) {
    return request({
        url: '/service-article/sensitive/update',
        method: 'put',
        data: data
    })
}

// 删除敏感词
export function delSensitive(ids) {
    return request({
        url: '/service-article/sensitive/batchDelete/',
        method: 'delete',
        ids
    })
}